<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    *{margin:0;padding:0;}
    .table{
        width:400px;
        height:500px;
        border: 1px solid #aaa;
        text-align: center;
        margin: 50px 100px;
    }
    ul{
        width:400px;
        height:100px;
        list-style: none;
    }
    li{
        display: inline-block;
        font-size: 16px;
      
        cursor: pointer;
    }
    .one input{
        width:300px;
        height:40px;
      
    }
    .content{
        position: relative;
        width:400px;
        height:400px;
    }
    .content>div{
        position: absolute;
        width:100%;
        height:100%;
    }
     .two{
        display: none; 
    } 
    .two img{
        width:300px;
        height:300px;
    }
    .current{
        color:orangered;
    }
</style>
</head>
<body>
    <div class="table">
        <ul>
            <li class="current">账号登陆</li>
            <li>扫码登陆</li>
        </ul>
        <div class="content">
            <div class="one">
                <input type="text" placeholder="邮箱/手机号码/小米id">
            </div>
            <div class="two">
                <img src="images/01.png" alt="">
            </div>
        </div>
    </div>
    <script>
        var lis=document.getElementsByTagName("li");
        var contents=document.querySelectorAll(".content>div")
        for(var i=0;i<lis.length;i++){
            lis[i].index=[i]
            lis[i].on
        }
    </script>
</body>
</html>